package com.ccnf.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ccnf.model.entity.Invitation;
import com.ccnf.model.enums.AuthStatusEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 邀请函信息表 Mapper 接口
 * </p>
 *
 * @author developer
 * @since 2019-02-26
 */
public interface InvitationMapper extends BaseMapper<Invitation> {

    List<Invitation> selectInvitationBySearch(@Param("expoId") Long expoId,
                                                @Param("searchContent") String searchContent,
                                                @Param("authStatus") AuthStatusEnum authStatus,
                                                @Param("demo") Integer demo);

    List<Invitation> selectInvitationByUserId(@Param("expoId") Long expoId,
                                                @Param("userId") Long userId);

    List<Invitation> selectAuthInvitationByExpoId(@Param("expoId") Long expoId,
                                                    @Param("userId") Long userId);
}